export default {
    _toArray: function (): any {
        let arr = [];
        for (let key in this.objs) {
            if (this.objs.hasOwnProperty(key)) {
                arr.push(this.objs[key]);
            }
        }
        return arr;
    },

    _get: function (id: number): any {
        if (this.objs[id]) {
            return this.objs[id];
        } else {
            return { text: "", value: null };
        }
    },
};
